package com.lzh.prometheus.pojos.dingding;

import com.lzh.prometheus.properties.enums.DingdingTextTypeEnum;

/**
 * @author zhehen.lu
 * @date 2025/8/15 9:58
 */
public class DingDingMarkdownNotice extends DingDingNotice {

    private DingDingMarkdown markdown;

    /**
     * @param at
     * @param msgtype
     */
    public DingDingMarkdownNotice(String msg, String title, String[] phones) {
        super(new DingDingAt(phones), DingdingTextTypeEnum.MARKDOWN.getMsgType());
        markdown = new DingDingMarkdown(title, msg);
    }

    /**
     * @return the markdown
     */
    public DingDingMarkdown getMarkdown() {
        return markdown;
    }

    /**
     * @param markdown the markdown to set
     */
    public void setMarkdown(DingDingMarkdown markdown) {
        this.markdown = markdown;
    }

    @Override
    public String toString() {
        return "DingDingMarkdownNotice [markdown=" + markdown + ", at=" + at + ", msgtype=" + msgtype + "]";
    }

}
